-- GENERATED SPELL FOR [Bladespire Brute] --


function spell0_19995(pUnit, Event) --@Bladespire Spear Throw,n/a--
pUnit:FullCastSpellOnTarget(35040,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19995', 603, 1)
end

function spell1_19995(pUnit, Event) --@Bladespire Spear Throw 01,n/a--
pUnit:FullCastSpellOnTarget(35262,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19995', 569, 1)
end

function spell2_19995(pUnit, Event) --@Bloodmaul Intoxication,n/a--
pUnit:FullCastSpellOnTarget(35240,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19995', 25000, 1)
end

function spell3_19995(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19995', 677, 1)
end

function Sorts_19995(pUnit, Event)
local choix_sorts_19995 = math.random(0, 3)
if choix_sorts_19995 == 0 then
pUnit:RegisterEvent('spell0_19995', 1, 1)
end
if choix_sorts_19995 == 1 then
pUnit:RegisterEvent('spell1_19995', 1, 1)
end
if choix_sorts_19995 == 2 then
pUnit:RegisterEvent('spell2_19995', 1, 1)
end
if choix_sorts_19995 == 3 then
pUnit:RegisterEvent('spell3_19995', 1, 1)
end
end

function mob19995_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19995', math.random(1500, 3000), 1)
end

function mob19995_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19995_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19995_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19995, 1, 'mob19995_Action')
RegisterUnitEvent(19995, 2, 'mob19995_Leave')
RegisterUnitEvent(19995, 3, 'mob19995_Kill')
RegisterUnitEvent(19995, 4, 'mob19995_Die')
